<include file="public:header"/>
<div class="list_th">
    <div class="td" style=" width:5%;">ID</div>
    <div class="td" style=" width:20%;">
        <div class="left_padding">评语模板标题</div>
    </div>
    <div class="td" style=" width:35%;">评语内容</div>
    <div class="td" style=" width:10%;">状态</div>
    <div class="td" style=" width:20%;">添加时间</div>
    <div class="td" style=" width:10%;">操作</div>
    <div class="clear"></div>
</div>

<volist name="list" id="vo">
    <div class="list_tr link_blue">
        <div class="td" style=" width:5%;">{$vo['id']}</div>
        <div class="td" style=" width:20%;">
            <div class="left_padding striking">{$vo.title}</div>
        </div>
        <div class="td" style=" width:35%;">{$vo.content}</div>
        <div class="td" style=" width:10%;"><if condition="$vo['status'] eq 0">开启<else /><span style="color:red">关闭</span></if></div>
        <div class="td" style=" width: 20%;">{:date('Y-m-d H:i', $vo['addtime'])}</div>
        <div class="td edit" style=" width:10%;">
            <a href="{:U('edit',array('id'=>$vo['id']))}">修改</a>
            <a href="{:U('del',array('id'=>$vo['id']))}" onclick="return confirm('你确定要删除吗？')" class="gray">删除</a>
        </div>
        <div class="clear"></div>
    </div>
</volist>

<empty name="list">
    <div class="list_empty">没有任何信息！</div>
</empty>

<div class="list_foot">
    <div class="btnbox">
        <!--<input type="button" class="admin_submit" id="ButSort" value="保存排序"/>-->
        <input type="button" class="admin_submit" id="ButAdd" value="新增" onclick="window.location.href='{:U('add')}'"/>
    </div>
    <div class="footso"></div>
</div>

</div>
<include file="public:footer"/>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        //保存排序
        $("#ButSort").click(function () {
            $("form[name=FormData]").submit();
        });
    });
</script>
</html>